#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton*button=new QPushButton(this);
    button->setText("按钮");
    button->resize(100,100);
    button->move(120,111);
//    button->setCursor(QCursor(Qt::BitmapCursor));
    QPixmap pixmap(":/cat.png");
    pixmap=pixmap.scaled(60,60);
    QCursor cursor(pixmap,2,2);
    button->setCursor(cursor);
}

Widget::~Widget()
{
    delete ui;
}

